package com.example.bai1;

import android.os.Bundle;
import android.app.Activity;
import android.view.Menu;
import android.view.View;
import android.widget.Button;
import android.widget.Toast;

public class Subactivity1Activity extends Activity {

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.subactivity1);
		
		/*	Button btnReturn= (Button) findViewById(R.id.btnreturn);
		btnReturn.setOnClickListener(new View.OnClickListener() {
			
			@Override
			public void onClick(View v) {
				finish();
				
			}
		});*/
		
		
	}

	@Override
	public boolean onCreateOptionsMenu(Menu menu) {
		// Inflate the menu; this adds items to the action bar if it is present.
		getMenuInflater().inflate(R.menu.subactivity1, menu);
		return true;
	}
		//XML clicked-event
	public void click_event(View v)
	{
		Toast.makeText(Subactivity1Activity.this, "click_event....", Toast.LENGTH_LONG).show();
		finish();
	}
}
